package com.weipai.education.dao;

import com.weipai.education.model.CusRecord;
import com.weipai.education.model.CusTakeGoods;
import com.weipai.education.model.Customer;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/10 17:21
 */
public interface CustomerDao {
    
    int update(Customer customer);

    int insert(Customer customer);

    Customer selectByPrimaryKey(String id);

    List<Map<String,Object>> list(Integer start, Integer size, String key, String userId);

    Integer listAmount(String key, String userId);
    
    int saveCusRecord(CusRecord cusRecord);

    Map<String,Object> getCustomerInfo(String customerId);

    List<Map<String,Object>> getCusRecord(String customerId);

    void insertCusTakeGoods(CusTakeGoods cusTakeGoods);

    List<Map<String,Object>> getCusTakeGoods(String id);
}
